package com.gitee.sop.layui.adminserver.module.base.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 折线统计图形vo对象
 * @author: huwei
 * @date: 2020/6/9 9:37
 * @version: 1.0.0
 */
@Data
@Accessors(chain = true)
public class ChartLineVo {
    /**
     * 折线名称列表
     */
    private List<String> legend;
    /**
     * x轴数据
     */
    private List<String> xData;
    /**
     * y轴数据，其中yData外层与legend一一对应，内层在表示对应的数据
     */
    private List<List<Object>> yData;

    public ChartLineVo(List<String> legend, List<String> xData, List<List<Object>> yDataList) {
        this.legend = legend;
        this.xData = xData;
        this.yData = yDataList;
    }
}
